package com.yuanian.ecsplus.exception;

/**
 * ecs异常
 */
public class EcsPlusException extends RuntimeException {

    private Throwable cause;
    private String msg;

    public EcsPlusException(String message, Throwable cause) {
        super(message, cause);
    }

    public EcsPlusException(Throwable cause) {
        super("ecsplus执行发生错误:" + cause.getMessage(), cause);
    }

    public EcsPlusException(String message) {
        super(message);
    }

    @Override
    public Throwable getCause() {
        return cause;
    }

    public void setCause(Throwable cause) {
        this.cause = cause;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
